-- GENERATED SPELL FOR [Legion Commander Yorik] --


function spell0_27857(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27857', 607, 1)
end

function Sorts_27857(pUnit, Event)
local choix_sorts_27857 = math.random(0, 0)
if choix_sorts_27857 == 0 then
pUnit:RegisterEvent('spell0_27857', 1, 1)
end
end

function mob27857_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27857', math.random(1500, 3000), 1)
end

function mob27857_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27857_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27857_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27857, 1, 'mob27857_Action')
RegisterUnitEvent(27857, 2, 'mob27857_Leave')
RegisterUnitEvent(27857, 3, 'mob27857_Kill')
RegisterUnitEvent(27857, 4, 'mob27857_Die')
